Optimal. Leaf size=132 \[ \frac {2 \sqrt {2} \sqrt {1-\sin (e+f x)} \sec (e+f x) (a \sin (e+f x)+a)^{m+1} (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n} F_1\left (m+\frac {1}{2};-\frac {1}{2},-n;m+\frac {3}{2};\frac {1}{2} (\sin (e+f x)+1),-\frac {d (\sin (e+f x)+1)}{c-d}\right )}{f (2 m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.20, antiderivative size = 132, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {3008, 140, 139, 138} \[ \frac {2 \sqrt {2} \sqrt {1-\sin (e+f x)} \sec (e+f x) (a \sin (e+f x)+a)^{m+1} (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n} F_1\left (m+\frac {1}{2};-\frac {1}{2},-n;m+\frac {3}{2};\frac {1}{2} (\sin (e+f x)+1),-\frac {d (\sin (e+f x)+1)}{c-d}\right )}{f (2 m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 138
Rule 139
Rule 140
Rule 3008
Rubi steps
\begin {align*} \int (a-a \sin (e+f x)) (a+a \sin (e+f x))^m (c+d \sin (e+f x))^n \, dx &=\frac {\left (\sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}\right ) \operatorname {Subst}\left (\int \sqrt {a-a x} (a+a x)^{-\frac {1}{2}+m} (c+d x)^n \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\left (\sqrt {2} \sec (e+f x) (a-a \sin (e+f x)) \sqrt {a+a \sin (e+f x)}\right ) \operatorname {Subst}\left (\int \sqrt {\frac {1}{2}-\frac {x}{2}} (a+a x)^{-\frac {1}{2}+m} (c+d x)^n \, dx,x,\sin (e+f x)\right )}{f \sqrt {\frac {a-a \sin (e+f x)}{a}}}\\ &=\frac {\left (\sqrt {2} \sec (e+f x) (a-a \sin (e+f x)) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^n \left (\frac {a (c+d \sin (e+f x))}{a c-a d}\right )^{-n}\right ) \operatorname {Subst}\left (\int \sqrt {\frac {1}{2}-\frac {x}{2}} (a+a x)^{-\frac {1}{2}+m} \left (\frac {a c}{a c-a d}+\frac {a d x}{a c-a d}\right )^n \, dx,x,\sin (e+f x)\right )}{f \sqrt {\frac {a-a \sin (e+f x)}{a}}}\\ &=\frac {2 \sqrt {2} F_1\left (\frac {1}{2}+m;-\frac {1}{2},-n;\frac {3}{2}+m;\frac {1}{2} (1+\sin (e+f x)),-\frac {d (1+\sin (e+f x))}{c-d}\right ) \sec (e+f x) \sqrt {1-\sin (e+f x)} (a+a \sin (e+f x))^{1+m} (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n}}{f (1+2 m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 10.11, size = 0, normalized size = 0.00 \[ \int (a-a \sin (e+f x)) (a+a \sin (e+f x))^m (c+d \sin (e+f x))^n \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-{\left (a \sin \left (f x + e\right ) - a\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (d \sin \left (f x + e\right ) + c\right )}^{n}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int -{\left (a \sin \left (f x + e\right ) - a\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (d \sin \left (f x + e\right ) + c\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.43, size = 0, normalized size = 0.00 \[ \int \left (a -a \sin \left (f x +e \right )\right ) \left (a +a \sin \left (f x +e \right )\right )^{m} \left (c +d \sin \left (f x +e \right )\right )^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\int {\left (a \sin \left (f x + e\right ) - a\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (d \sin \left (f x + e\right ) + c\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (a+a\,\sin \left (e+f\,x\right )\right )}^m\,\left (a-a\,\sin \left (e+f\,x\right )\right )\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^n \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________